package com.hotel.sampleTool;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.hotel.BL.GenericLogic;

import data.ReservationStatus;

public class ReservationStatusSample extends RequestSampleData {
	public ReservationStatusSample(HttpServletRequest req,HttpServletResponse resp){
		this.req = req;
		this.resp = resp;
	}
	@Override
	public void CreateSample() {
		CreateSample(1);
	}

	@Override
	public void CreateSample(int iteration) {
		long hotelId = 1;
		List<ReservationStatus> status = new GenericLogic(req,resp).GetReservationStatusByHotelId(hotelId);
		for (ReservationStatus a : status)
			datastore.put(a.getEntity());
	}
}
